ef3f1a6bd2e26387555f48ecde1aca05da62f0e1,dropwizard-jersey/src/test/java/io/dropwizard/jersey/optional/OptionalIntMessageBodyWriterTest.java,OptionalIntMessageBodyWriterTest,configure,#,31

Before Change


    @Override
    protected Application configure() {
        forceSet(TestProperties.CONTAINER_PORT, "0");
        return DropwizardResourceConfig.forTesting(new MetricRegistry())
                .register(OptionalIntReturnResource.class);
    }

    @Test

After Change


    @Override
    protected Application configure() {
        forceSet(TestProperties.CONTAINER_PORT, "0");
        return DropwizardResourceConfig.forTesting(new MetricRegistry())
                .register(new EmptyOptionalExceptionMapper())
                .register(OptionalIntReturnResource.class);
    }

    @Test